package com.ml.mall.bean.req.variant;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ml.mall.bean.req.product.vo.ProductPicNewVO;
import com.ml.mall.bean.req.variant.vo.SysProductVariantSalesVO;
import com.ml.mall.bean.req.variant.vo.VariantNewSkuDataVO;
import com.ml.mall.bean.vo.variant.SysProductVariantSalesVo;
import com.ml.mall.entity.variant.SysProductVariantDescrip;
import com.ml.mall.entity.variant.SysProductVariantSales;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by kyyang on 2021/5/17 22:22
 */
@Data
public class VariantNewReq {

    private String keyword;  // 增加 keyword

    @NotNull(message = "productId is not null!")
    private Long productId;

    @NotNull(message = "variantName is not null!")
    private String variantName;

//    @NotNull(message = "title is not null!")

    @NotNull(message = "price is not null!")
    private BigDecimal price;

//    @NotNull(message = "sellPrice is not null!")
    private BigDecimal commissionRate;



//    private BigDecimal sellPrice; // 增加 sellPrice,通过运算得到

    private int includTax;

    @NotNull(message = "supplierId is not null!")
    private Long supplierId;

    private List<ProductPicNewVO> picUrlArr;

    private VariantNewSkuDataVO skuData;

    private String description;

    private SysProductVariantSalesVo sysProductVariantSales;
}
